//
//  ScriptLoadUtil.h
//  ocdemo
//
//  Created by mac on 2025/2/9.
//

#import <Foundation/Foundation.h>
#import <React/RCTBridge+Private.h>
NS_ASSUME_NONNULL_BEGIN

@interface ScriptLoadUtil : NSObject
+(void)init:(RCTBridge*)bridge;
+(RCTBridge *)getBridge;

+(BOOL)isLoading;
+(BOOL)isDebugable;
+(BOOL)isScriptLoaded:(NSString * )moduleName;
+(NSString*)getDownLoadedScriptPath:(NSString*)path moduleName:(NSString*)moduleName;
+(NSString*)getDownLoadedScriptDirWithModuleName:(NSString*)moduleName;
+(void)loadScriptWithBridge:(RCTBridge*)bridge path:(NSString*)path moduleName:(NSString*)moduleName mainBundle:(BOOL)inMain;
@end

NS_ASSUME_NONNULL_END
